const Controller = require('egg').Controller;
const utils = require('../utils/index');

class AppController extends Controller {
  async admin() {
    const { ctx } = this;
    const data = utils.seoResult({
      csrf: ctx.csrf,
      url: ctx.url,
      title: '后台管理',
    });
    await ctx.renderClient('admin/index.js', data);
  }
}

module.exports = AppController;
